package com.zem.imos.Entity.Enum;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.zem.imos.Entity.User;

public enum Gender implements IEnum<Integer> {
    Male(0, "男"),
    Female(1, "女");

    private int code;
    private String desc;

    Gender(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return code;
    }
    public  String getDesc(){
        return desc;
    }

}
